#! /usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) Huoty, All rights reserved
# Author: Huoty <sudohuoty@gmail.com>
# CreateTime: 2018-01-19 23:42:47

import os
import sys


def pytest_configure(config):
    curr_path = os.path.dirname(os.path.realpath(__file__))
    sys.path.insert(0, os.path.join(curr_path, '..'))

    from tronitor.config import load_config
    from tronitor.log import setup_logging
    load_config()
    setup_logging(enable_extra_log=True)


def pytest_addoption(parser):
    parser.addoption("--run-full", action="store_true",
                     help="run full test case")
